<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>

<body>
    <form action="/upd2/" method="post">
        <table>
            <tr>
                <th>ID :</th>
                <th>
                    <input type="text" name="ID" id="ID" value={{user.id}}>
                </th>
            </tr>
            <tr>
                <th>New UserName :</th>
                <th><input type="text" id="username" name="username" value={{user.username}}/></th>
            </tr>
            <tr>
                <th>Password :</th>
                <th><input type="password" id="password" name="password" value={{user.password}}/></th>
            </tr>
            <tr>
                <th>Img :</th>
                <th><input type="text" id="img" name="img" value={{user.img}}/></th>
            </tr>
            <tr>
                <th>Type :</th>
                <th>
                    <select name="type" id="type" value={{user.type}}>
                        <option value="0">普通用户</option>
                        <option value="1">管理员</option>
                        <option value="2">商家</option>
                    </select>
                </th>
            </tr>
            <tr>
                <th colspan="2"><input type="submit" value="修改" /></th>
            </tr>
        </table>

    </form>

</body>

</html>